package com.rightsidetech.system.mapper;

import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.system.dtos.response.LevelRuleResp;
import com.rightsidetech.system.dtos.response.LevelSearchResp;
import com.rightsidetech.system.entity.SysLevelRule;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysLevelRuleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysLevelRule record);

    int insertSelective(SysLevelRule record);

    SysLevelRule selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysLevelRule record);

    int updateByPrimaryKey(SysLevelRule record);

    List<LevelRuleResp> list();

    SysLevelRule selectByLevel(@Param("level") Byte level);

    SysLevelRule selectByLevelName(@Param("levelName") String levelName);

    SysLevelRule findLevelRuleByOrderNum(@Param("orderNum") Long orderNum);

    List<LevelSearchResp> search(@Param("level") Byte level);
}